if Variable VC91_X64 Equals FALSE
  Set x64 - Native 64 bit Windows, AMD64 and EM64T Architectures - installation mode
  Set Variable PROGRESSTEXT to Installing Microsoft Visual C++ Runtime 9.0 (includes ATL and MFC) Service Pack 1 (x64)
  Set Variable VC91FILES_X64 to 
  Define File Bag : #IADIR#\runtimes\vc91bin_x64\*.*, get runtime location of files into variable VC91FILES_X64
  Set Variable VC91ERR_X64 to 
  Install/Remove MSI Package $VC91FILES_X64$\vc_red.msi[ADDLOCAL=ALL] (get result into variable VC91_X64)
  if Variable VC91_X64 Equals REBOOT
    MessageBox: $TITLE$ Setup, Your computer needs to be restarted before $TITLE$ Setup can continue.$NEWLINE$$NEWLINE$Please save your work in all running programs and click OK to restart your computer. Setup will resume once your computer restarts.$NEWLINE$$NEWLINE$If you click CANCEL, setup will exit. You will have to run setup again at a later time to install $TITLE$.
    if Variable REBOOTNOW Equals OK
      Reboot Computer and Resume Setup
    else
      Terminate Installation
    end
  else
    if Variable VC91_X64 Equals ERROR
      MessageBox: $TITLE$ Setup, Microsoft Visual C++ Runtime 9.0 Service Pack 1 (x64) could not be installed. Please use Windows Update to manually install this update on your system.$NEWLINE$$NEWLINE$$TITLE$ Setup cannot continue.
      Terminate Installation
    end
  end
  Set Win32 - Native 32 bit Windows and Windows 32 on Windows 64 (WOW64) - installation mode
end
 
